﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace O.M.Production.Domain.Entity
{
    /// <summary>
    /// 生产明细表
    /// </summary>

    [SugarTable("production_details")]
    public class production_details : BaseModel
    {
        /// <summary>
        /// 销售ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "销售ID", Length = 100)]
        public string sell_id { get; set; }

        /// <summary>
        /// 销售日期
        /// </summary>
        [SugarColumn(ColumnDescription = "销售日期")]
        public DateTime? sell_date { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        [SugarColumn(ColumnDescription = "产品ID", Length = 100)]
        public string? product_id { get; set; }

        /// <summary>
        /// 规格和型号
        /// </summary>
        [SugarColumn(ColumnDescription = "规格和型号", Length = 100)]
        public string? specifications_and_models { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(ColumnDescription = "单位", Length = 100)]
        public string? unit { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [SugarColumn(ColumnDescription = "数量")]
        public int quantity { get; set; }

        /// <summary>
        /// 需求日期
        /// </summary>
        [SugarColumn(ColumnDescription = "需求日期")]
        public DateTime? demand_date { get; set; }
    }
}
